import request from '@/utils/request'

export function fetchFieldDefineList(data) {
  return request({
    url: '/cloud-system/getFieldDefineList',
    method: 'post',
    data
  })
}

export function fetchFieldDefineOne(data) {
  return request({
    url: '/cloud-system/getOneFieldDefineDetail',
    method: 'post',
    data
  })
}

export function createFieldDefine(data) {
  return request({
    url: '/cloud-system/createOneFieldDefine',
    method: 'post',
    data
  })
}

export function updateFieldDefine(data) {
  return request({
    url: '/cloud-system/updateOneFieldDefine',
    method: 'post',
    data
  })
}

export function deleteFieldDefine(data) {
  return request({
    url: '/cloud-system/deleteOneFieldDefine',
    method: 'post',
    data
  })
}
export function batchDeleteFieldDefine(data) {
  return request({
    url: '/cloud-system/batchDeleteFieldDefine',
    method: 'post',
    data
  })
}

export function lockFieldDefine(data) {
  return request({
    url: '/cloud-system/lockOneFieldDefine',
    method: 'post',
    data
  })
}

export function unlockFieldDefine(data) {
  return request({
    url: '/cloud-system/unlockOneFieldDefine',
    method: 'post',
    data
  })
}

export function batchLockFieldDefine(data) {
  return request({
    url: '/cloud-system/batchLockFieldDefine',
    method: 'post',
    data
  })
}

export function batchUnLockFieldDefine(data) {
  return request({
    url: '/cloud-system/batchUnLockFieldDefine',
    method: 'post',
    data
  })
}
